﻿@model TanWeb.Models.Entities.Product
@{
    ViewBag.Title = "Thông tin sản phẩm";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<link rel="stylesheet" href="@Url.Content("~/Content/css/popup.css")" />
@Scripts.Render("~/Scripts/Pages/info.js")
@Scripts.Render("~/Scripts/Common/modalPopup.js")

<!--
<div class="content_title">
    <h3>
    @*
    @{
        @Model.GroupName
        
        if (Model.SubGroupName != string.Empty)
        {
            @Html.Raw(" > " + @Model.SubGroupName);
        }
    }*@
    </h3>
</div>
-->
<div class="product_box">
    <div class="content_height10"></div>
    <div class="box_center margin-left-15">
        @if (Model == null)
        {
            @TanWeb.Helpers.Constants.GRID_EMPTY_WARNING
        }
        else
        {
            <div class="detailInfo float-and-clear">
                <div class="imageUrl">
                    <a href="#"><img src="@Model.GetTempImagePath(TanWeb.Helpers.Constants.TYPE_IMAGE_NORMAL)" width="250" /></a>
                </div>
                <div class="info">
                    <h4>@Model.Name</h4>
                    <p class="price">Giá: @string.Format(Model.Price > 0 ? "{0:#,###} VNĐ" : TanWeb.Helpers.Constants.PRICE_NOT_SET, Model.Price)</p>
                    <p class="description">@Model.Description</p>
                </div>
            </div>    
            <div class="content_height10"></div>
            <div class="subInfo float-and-clear">
                <p class="title"><u>Thông tin sản phẩm:</u></p>
                <p><strong>-   Số lượng:</strong> @string.Format("{0:#,###}", @Model.Qty)</p>
                <p><strong>-   Nguyên liệu:</strong> @Model.Materials</p>
                <p><strong>-   Đá:</strong> @Model.GemType</p>
                <p><strong>-   Trọng lượng bạc:</strong> @Model.Weight</p>
                <p><strong>-   Kích thước:</strong> @Model.Dimensions</p>
                <p class="title"><u>Dịch vụ tính phí:</u></p>
                <p>@MvcHtmlString.Create(Html.Encode(Model.FeeService).Replace(Environment.NewLine, TanWeb.Helpers.Constants.HTML_NEW_LINE))</p>
                <p class="title"><u>Dịch vụ miễn phí:</u></p>
                <p>@MvcHtmlString.Create(Html.Encode(Model.FreeService).Replace(Environment.NewLine, TanWeb.Helpers.Constants.HTML_NEW_LINE))</p>
            </div>
        }
    </div>
    <div class="content_height10"></div>
</div>
<!-- Popup -->
<div id="toPopup" class="mediumSize">
    <div class="close"></div>
    <div class="popup_content">
        <iframe id="popup" class="mediumSize"></iframe>
    </div>
</div> 
<!-- Popup end -->
<div class="loader">
    <div class="circle"></div>
    <div class="circle1"></div>
</div>
<div id="backgroundPopup"></div>
<input type="hidden" id="hdnGroupId" value="@Model.GroupId"/>
<input type="hidden" id="hdnSubGroupId" value="@Model.SubGroupId"/>
<input type="hidden" id="hdnProductId" value="@Model.id"/>
<!--<div class="box_2bottom"></div>-->
